<div class="departments view">
<h2><?php  echo __('Department'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($department['Department']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($department['Department']['name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Dept Desc'); ?></dt>
		<dd>
			<?php echo h($department['Department']['dept_desc']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Email'); ?></dt>
		<dd>
			<?php echo h($department['Department']['email']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>

                    		<li><?php echo $this->Html->link(__('Users'), array('controller' => 'Users','action' => 'index')); ?></li>
                    		<li><?php echo $this->Html->link(__('Departments'), array('controller' => 'departments', 'action' => 'index')); ?> </li>
                    		<li><?php echo $this->Html->link(__('Contacts'), array('controller' => 'contacts', 'action' => 'index')); ?> </li>
                    		<li><?php echo $this->Html->link(__('Mail Lists'), array('controller' => 'mail_lists', 'action' => 'index')); ?> </li>
                    		<li><?php echo $this->Html->link(__('Timesheets'), array('controller' => 'timesheets', 'action' => 'index')); ?> </li>
                    		<li><?php echo $this->Html->link(__('Notes'), array('controller' => 'notes', 'action' => 'index')); ?> </li>
                    	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Mail Lists'); ?></h3>
	<?php if (!empty($department['MailList'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Name'); ?></th>
		<th><?php echo __('Mail Desc'); ?></th>
		<th><?php echo __('Department Id'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($department['MailList'] as $mailList): ?>
		<tr>
			<td><?php echo $mailList['id']; ?></td>
			<td><?php echo $mailList['name']; ?></td>
			<td><?php echo $mailList['mail_desc']; ?></td>
			<td><?php echo $mailList['department_id']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'mail_lists', 'action' => 'view', $mailList['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'mail_lists', 'action' => 'edit', $mailList['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'mail_lists', 'action' => 'delete', $mailList['id']), null, __('Are you sure you want to delete # %s?', $mailList['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Mail List'), array('controller' => 'mail_lists', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
